# sum = 0
# for x in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]:
#     sum = sum + x
# print(sum)

# print(list(range(5)))

# sum = 0
# for x in range(101):
#     sum = sum + x
# print(sum)

# sum = 0
# n = 99
# while n > 0:
#     sum = sum + n
#     n = n - 2
# print(sum)

L = ['Bart', 'Lisa', 'Adam']
for name in L:
    print('Hello,' + name + '!')

# n = 1
# while n <= 100:
#     print(n)
#     n = n + 1
# print('END')

# n = 1
# while n <= 10:
#     print(n)
#     n = n + 1
# print('END')

n = 0
while n < 10:
    n = n + 1
    if n % 2 == 0: # 如果n是偶数，执行continue语句
        continue # continue语句会直接继续下一轮循环，后续的print()语句不会执行
    print(n)

# print(list(range(1, 101)))
